package com.qianli.cashmama.trade.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.qianli.cashmama.trade.dao.TUserLevelDetailDao;
import com.qianli.cashmama.trade.entity.TUserLevelDetailEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

/**
* User: sm
* Date: 2019-12-18
* Time: 14:47:02.656
*/

@Repository
public class TUserLevelDetailDaoImpl extends AbstractBaseMapper<TUserLevelDetailEntity> implements TUserLevelDetailDao {

    @Override
    public TUserLevelDetailEntity getUserLatestRecored(String userCode, String categoryCode) {
        Map<String, Object> map = new HashMap<>();
        map.put("userCode", userCode);
        map.put("categoryCode", categoryCode);
        return getSqlSession().selectOne(getStatement("getUserLatestRecored"), map);
    }
}